// scripts/deploy-my-collectible.js
const { ethers, upgrades } = require("hardhat");

async function main() {
  const Index = await ethers.getContractFactory("Index");

  const index = await upgrades.deployProxy(Index);

  await index.waitForDeployment();
  console.log("MyCollectible deployed to:", await index.getAddress());
}

main();